package net.hn.hnms.biz.safety.trinity.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author 智呈物联 nzw
 * @date 2022/8/5
 */
@Data
@Entity
@ApiModel("违章记录表")
@Table(name = "work_safety_violation", schema = "swyt", catalog = "huaneng-safety")
public class WorkSafetyViolation {

    @ApiModelProperty(value = "违章ID")
    @TableId(value = "violation_id")
    @Id
    private String id;

    @Column(name = "mine_code")
    @ApiModelProperty(value = "煤矿编码")
    private String mineCode;

    @Column(name = "violation_date")
    @ApiModelProperty(value = "违章日期")
    private Date violationDate;

    @Column(name = "violation_shift")
    @ApiModelProperty(value = "违章班次（码表）")
    private String violationShift;

    @Column(name = "violation_address")
    @ApiModelProperty(value = "违章地点")
    private String violationAddress;

    @Column(name = "violation_dept_code")
    @ApiModelProperty(value = "违章人员单位编码")
    private String violationDeptCode;

    @Column(name = "violation_dept_name")
    @ApiModelProperty(value = "违章人员单位名称")
    private String violationDeptName;

    @Column(name = "violation_person_code")
    @ApiModelProperty(value = "违章人员编码")
    private String violationPersonCode;

    @Column(name = "violation_person_name")
    @ApiModelProperty(value = "违章人员名称")
    private String violationPersonName;

    @Column(name = "violation_type")
    @ApiModelProperty(value = "违章分类（码表）")
    private String violationType;

    @Column(name = "violation_level")
    @ApiModelProperty(value = "三违级别（码表）")
    private String violationLevel;

    @Column(name = "violation_major")
    @ApiModelProperty(value = "三违专业（码表）")
    private String violationMajor;

    @Column(name = "violation_description")
    @ApiModelProperty(value = "三违描述")
    private String violationDescription;

    @Column(name = "violation_reason")
    @ApiModelProperty(value = "查处原因")
    private String violationReason;

    @Column(name = "stop_violation_person_code")
    @ApiModelProperty(value = "制止人编码")
    private String stopViolationPersonCode;

    @Column(name = "stop_violation_person_name")
    @ApiModelProperty(value = "制止人名称")
    private String stopViolationPersonName;

    @Column(name = "punisher_dept_codes")
    @ApiModelProperty(value = "查处单位编码")
    private String punisherDeptCodes;

    @Column(name = "punisher_dept_names")
    @ApiModelProperty(value = "查处单位名称")
    private String punisherDeptNames;

    @Column(name = "punisher_person_codes")
    @ApiModelProperty(value = "查处人编码")
    private String punisherPersonCodes;

    @Column(name = "punisher_person_names")
    @ApiModelProperty(value = "查处人名称")
    private String punisherPersonNames;

    @Column(name = "punishment_result")
    @ApiModelProperty(value = "针对三违查处结果")
    private String punishmentResult;

    @Column(name = "data_time")
    @ApiModelProperty(value = "数据时间")
    private Date dataTime;

    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
